﻿using AutoMapper;
using Dora.Services.AdminUser.Dto.SaveDto;
using Dora.Services.AdminUser.Dto.ViewDto;
using Dora.Services.AdminUser.Entities;

namespace Dora.Services.AdminUser.Dto
{
    public class MappingProfile : Profile
    {
        public MappingProfile()
        {
            CreateMap<OrganizationEntity, OrganizationEditDto>();
            CreateMap<OrganizationEditDto, OrganizationEntity>();

            CreateMap<OrganizationDto, OrganizationEntity>();
            CreateMap<OrganizationEntity, OrganizationDto>();

            CreateMap<OrgSimpleDto, OrganizationEntity>();
            CreateMap<OrganizationEntity, OrgSimpleDto>();
            
            CreateMap<TravelServiceOrgEditDto, OrganizationEntity>();
            CreateMap<OrganizationEntity, TravelServiceOrgEditDto>();

            CreateMap<StoreInfoEditDto, OrganizationEntity>();
            CreateMap<OrganizationEntity, StoreInfoEditDto>();
        }
    }
}
